//
//  MyAllOrderTableViewCell.m
//  lmq
//
//  Created by apple on 2017/3/8.
//  Copyright © 2017年 yuanxin. All rights reserved.
//

#import "MyAllOrderTableViewCell.h"
#import "ALLMyShopModel.h"
#import "AllMyOrderModel.h"
@implementation MyAllOrderTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.cancelButton.layer.borderWidth = 1.0f;
    self.cancelButton.layer.borderColor = [UIColor blackColor].CGColor;
    
}
- (IBAction)paymentButton:(UIButton *)sender {
    if (self.block) {
        self.block(sender);
    }
    
    
}
- (IBAction)cancelButton:(UIButton *)sender {
    if (self.blockOfCancel) {
        self.blockOfCancel(sender);
        
    }
    
    
}

- (void)callCancelBlock:(CancelBlock)blockOfCancel{

    self.blockOfCancel = blockOfCancel;
    
}
- (void)callBackEditBlock:(EditBlock)block{
    self.block = block;
}



- (void)setModel:(AllMyOrderModel *)model{

    _model = model;
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModelOfAll:(ALLMyShopModel *)modelOfAll{

//    self.nameLabel.text = modelOfAll.shop_name;
//    NSString *strPrice = @"¥";
//    NSString *strPriceN = [NSString stringWithFormat:@"%ld", (long)modelOfAll.price];
//    
//    self.priceLabel.text = [strPrice stringByAppendingString:strPriceN];
//    NSString *strNum = @"×";
//    
//    NSString *strshop = [NSString stringWithFormat:@"%ld", (long)modelOfAll.shop_num];
//    
//    self.numberLaberl.text = [strNum stringByAppendingString:strshop];
//    self.allPriceLabel.text = [strPrice stringByAppendingString:strPriceN];
//    self.productionLabel.text = modelOfAll.production_date;
    


}

@end
